package com.tbit.main.service;

import com.tbit.main.pojo.MachineCleanLog;
import com.tbit.main.pojo.MachineCleanLogSta;

import java.util.List;

/**
 * @author LMY
 * @create 2021-01-08 16:14
 * 清洁车
 */
public interface MachineCleanService {

    /**
     * 插入
     *
     * @param machineCleanLog
     */
    Integer insert(MachineCleanLog machineCleanLog);

    /**
     * 按时间分组统计
     *
     * @param agentId
     * @param userType
     * @param usermainId
     * @param startTime
     * @param endTime
     * @return
     */
    List<MachineCleanLogSta> groupByTime(Integer agentId, Integer userType, Integer usermainId, String startTime,
                                         String endTime, Integer isValid, List<Integer> regionId);

    /**
     * 根据时间查询
     *
     * @param accountId
     * @param userMainId
     * @param startTime
     * @param endTime
     * @return
     */
    List<MachineCleanLog> getByTime(Integer accountId, Integer userMainId, String startTime, String endTime, Integer isValid, List<Integer> regionId);

}
